import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home"
import Login from "../components/Login"
import Register from "../components/Register"
import FindPassword from "../components/FindPassword";
import ResetPassword from "../components/ResetPassword";
import QQCallBack from "../components/QQCallBack"
import Write from "../components/Write";
Vue.use(Router);


export default new Router({
  mode:"history",
  routes: [
    {
      name: "Home",
      path: '/',
      component: Home

    },
    {
      name: "Home",
      path: "/home",
      component: Home
    },
    {
      name: "Login",
      path: "/user/login",
      component: Login
    },
    {
      name:"Register",
      path:"/user/register",
      component:Register
    },
    {
      name:"FindPassword",
      path:"/find/password",
      component:FindPassword
    },
    {
      name:"ResetPassword",
      path:"/reset/password",
      component:ResetPassword
    },
    {
      name:"QQCallBack",
      path:"/oauth_callback.html",
      component: QQCallBack,
    },
    {
      name:"Write",
      path:"/write",
      component:Write
    }
  ]
})
